package com.lanou3g.code0423.set;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by dllo on 18/4/23.
 */
public class Test03 {
    public static void main(String[] args) {
        Set<Integer>set= new HashSet<Integer>(){{
            add(1);
            add(2);
        }};


       show(new HashSet<Integer>(){{
           add(1);
           add(2);
       }});
    }
    private static void show(Set<Integer>set){
        for (Integer integer : set) {
            System.out.println(integer);
        }
    }
}
